package action;

import java.io.IOException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class Execute {
	public Execute() throws IOException{
		BeanFactory beanfactory = new XmlBeanFactory(
				new ClassPathResource("config/SpringConfig.xml"));
		Main main = (Main) beanfactory.getBean("MainBean");
		main.process();
	}
	public static void main(String[] args){
		try{
			new Execute();
		}catch (IOException e) {
			e.printStackTrace();
		}
	}
}


